package org.jground.zk.util;

import org.zkoss.zk.ui.Session;
import org.zkoss.zk.ui.util.RequestInterceptor;

public class RXRequestInterceptor implements RequestInterceptor {


    public void request(Session sess, Object request, Object response) {
        System.err.println(">RXRequestInterceptor request    " + request.getClass());
        System.err.println(">RXRequestInterceptor response   " + response.getClass());
        
    }

    // /** Retrieve info at the constructor, which runs at the servlet thread.
    // */
    // private RXPrincipalMethods methods;
    //
    // public MOSecurityThreadInit() {
    // methods = RXSystem.getMOPrincipalMethods();
    // System.err.println(">>>>MOSecurityThreadInit constructor " + methods);
    // }
    //
    // // -- EventThreadInit --//
    // /** Initial the event processing thread at this method. */
    // public boolean init(Component comp, Event evt) {
    // // RXPrincipalMethods testPrincipalMethods = new
    // // DefaultRXPrincipalMethods("toni", new String[] { "READER",
    // // "UPDATER" }, "de");
    // RXSystem.setMOPrincipalMethods(methods);
    // System.err.println(">>>>MOSecurityThreadInit init "+ methods);
    // return true;
    // }
    //
    // public void prepare(Component comp, Event event) throws Exception {
    // methods = RXSystem.getMOPrincipalMethods();
    // System.err.println(">>>>MOSecurityThreadInit prepare " + methods);
    // }
}